package week08.company;

/**
 * Created by zhangxiaokun on 2018/3/20.
 */
public class Market implements Department {
    private Mediator mediator;
    private String dname = DepartmentName.Market;

    public Market(Mediator mediator) {
        this.mediator = mediator;
        mediator.register(dname, this);
    }

    @Override
    public void selfAction() {
        System.out.println("...市场部去接项目..");
    }

    @Override
    public void outAction() {
        System.out.println("");
        mediator.command(DepartmentName.Finacial);
    }
}
